<!doctype html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <title>address</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
    <style type="text/css">
    * {
        margin: 0;
        padding: 0;
        -webkit-appearance: none; //去掉浏览器默认样式
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
        box-sizing: border-box;
    }
    
    html,
    body {
        margin: 0 auto;
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
        -webkit-user-select: none;
    }
    
    body {
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        -webkit-text-size-adjust: 100%; //关闭自动调整字体
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        background: rgb(247,247,247);
    }
    
    input {
        width: 100%;
        height: 60px;
        font-size: 15px;
        border:none;
        border-bottom: 1px solid rgb(247,247,247);
        padding: 5px;
        padding-left: 10px;
    }
    
    
    textarea{
    	width: 100%;
    	min-height: 150px;
    	resize: none;
    	padding: 10px;
    	font-size: 14px;
    	border:none;
        border-bottom: 1px solid rgb(247,247,247);
    }
    .done{
    	width: 250px;
    	height: 40px;
    	background: #6db0ff;
    	color: white;
    	letter-spacing: 4px;
    	font-size: 16px;
    	margin: auto;
    	border-radius: 5px;
    	text-align: center;
    	line-height: 40px;
    	margin-top: 19px;
    }
    
    </style>
    <link rel="stylesheet" href="css/LArea.css">
</head>

<body>
    <div>
        <div class="content-block">
            <textarea id="deplace" name="" rows="" cols="" placeholder="有问题请留言，客服美眉会第一时间跟你勾搭的哟~"></textarea>
        </div>
        <div class="done">
        	完成
        </div>
    </div>
    <script src="js/LAreaData1.js"></script>
    <script src="js/LAreaData2.js"></script>
    <script src="js/LArea.js"></script>
    <script type="text/javascript" src="js/jquery-1.9.1.min.js">
    	
    </script>
    <script>
   
    	var userid = document.URL.split("?")[1].split("&")[0].split("=")[1];
    	$(".done").on("touchend",function(){
    		var Message = $("#deplace").val();
    		
				$.ajax({
					url: 'http://test.onetuu.com/Activity/setMessage', //跨域到http://www.wp.com，另，http://test.com也算跨域
			        type: 'post', //jsonp 类型下只能使用GET,不能用POST,这里不写默认为GET
			        dataType: 'json', //指定为jsonp类型
			        data: { //数据参数
			            "userid": userid,
			            "Message":Message
			        },
					success:function(data){
						console.log(data);
						if(data == 1){
							window.location.href = "index.html?userid="+userid;
						}
						
					}
				});
			
    		
    	});
		
    </script>
</body>

</html>
